﻿using System;
using UniRx.Diagnostics;
using UnityEngine;

namespace UniRx.Examples
{
	// Token: 0x020001F0 RID: 496
	public class Sample11_Logger
	{
		// Token: 0x06000A60 RID: 2656 RVA: 0x00037BF4 File Offset: 0x00035FF4
		public void ApplicationInitialize()
		{
			ObservableLogger.Listener.LogToUnityDebug();
			(from x in ObservableLogger.Listener
			where x.LogType == LogType.Exception
			select x).Subscribe(delegate(LogEntry x)
			{
			});
		}

		// Token: 0x06000A61 RID: 2657 RVA: 0x00037C56 File Offset: 0x00036056
		public void Run()
		{
			Sample11_Logger.logger.Debug("Debug Message", null);
			Sample11_Logger.logger.Log("Message", null);
			Sample11_Logger.logger.Exception(new Exception("test exception"), null);
		}

		// Token: 0x040006C7 RID: 1735
		private static readonly UniRx.Diagnostics.Logger logger = new UniRx.Diagnostics.Logger("Sample11");
	}
}
